package com.ctgu.edu.service.impl;

import com.ctgu.edu.dao.UsersMapper;
import com.ctgu.edu.pojo.Users;
import com.ctgu.edu.service.UsersService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UsersServiceImpl implements UsersService {

    private UsersMapper usersMaper;

    public void setUsersMaper(UsersMapper usersMaper) {
        this.usersMaper = usersMaper;
    }

    public Users getUsersById(String userId) {
        return usersMaper.getUsersById(userId);
    }


    public void addUser(Users users) {
        usersMaper.addUser(users);
    }
}
